Skip to content

PYTHON-5885 - Client Backpressure with retryAfterMS#2877

Draft
NoahStapp wants to merge 7 commits into
mongodb:masterfrom
NoahStapp:backpressure-v2
Draft

PYTHON-5885 - Client Backpressure with retryAfterMS#2877
NoahStapp wants to merge 7 commits into
mongodb:masterfrom
NoahStapp:backpressure-v2

Conversation

@NoahStapp

Copy link
Copy Markdown
Contributor

PYTHON-5885

Changes in this PR

Adds retryAfterMS support for backoff calculation on retryable overload errors.

Test Plan

Adds a new prose test test_05_overload_errors_with_retryafterms_override_backoff to verify the retryAfterMS behavior. Note that this new test requires a server with retryAfterMS support.

Checklist

Checklist for Author

  • Did you update the changelog (if necessary)?
  • Is there test coverage?
  • [ ] Is any followup work tracked in a JIRA ticket? If so, add link(s).

Checklist for Reviewer

  • Does the title of the PR reference a JIRA Ticket?
  • Do you fully understand the implementation? (Would you be comfortable explaining how this code works to someone else?)
  • Is all relevant documentation (README or docstring) updated?

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 77.77778% with 6 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pymongo/asynchronous/helpers.py 57.14% 2 Missing and 1 partial ⚠️
pymongo/synchronous/helpers.py 57.14% 2 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants